using AnalyStock.DataManage;

namespace AnalyStock.GrapImage;

/// <summary>
///     加载后台数据处理
/// </summary>
public partial class ChartCandle : UserControl
{
    private IList<CandlePoint> currCandlePoints;
    private KlineData currKlineData;

    public void ChartCandleChanged(KlineData klineData, CandlePointSet.PeriodType type)
    {
        currCandlePoints.Dispose();
        currKlineData = klineData;
        currCandlePoints = klineData.Dailies.CreatCandlePoints(type);
        //画K线
        PaintKline();
    }
}